package com.cloudbroker.bcs.platform.ltb.bizapi.service.credits.back;

import com.cloudbroker.bcs.common.constants.BasicErrorCodes;
import com.cloudbroker.bcs.common.entity.HSBCPSBackVO;

/**
 * Created by lili19289 on 2016/10/27.
 */
public class ResultVO extends HSBCPSBackVO {

    public String data_str;

    public long id;


    public String getData_str() {
        return data_str;
    }

    public void setData_str(String data_str) {
        this.data_str = data_str;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public static ResultVO success(String data){
        ResultVO resultVO = new ResultVO();
        resultVO.setError_no(BasicErrorCodes.SUCCESS);
        resultVO.setData_str(data);
        return resultVO;
    }

    public static ResultVO success(long id){
        ResultVO resultVO = new ResultVO();
        resultVO.setError_no(BasicErrorCodes.SUCCESS);
        resultVO.setId(id);
        return resultVO;
    }
}
